package com.uchonor.api.core.service;

import com.uchonor.api.core.query.DbType;
import com.uchonor.olight.agent.annotation.Service;

@Service
public class DefaultDataSourceMetaDataStrategy extends AbsDataSourceMetaDataStrategy {
    @Override
    protected DbType getSupperDbType() {
        return DbType.OTHER;
    }

    protected String buildTableSql(String tableSchema) {
        return getDbQuery().tablesSql();
    }

    protected String getFiledSql(String tableName,String tableSchema){
        return String.format(getDbQuery().tableFieldsSql(), tableName);
    }
}
